<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="导航" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<style type="text/css">
<!--
.style3 {color: #0000CC}
.STYLE1 {
	color: #154F8E;
	font-size: 12px;
}
body {
	background:#EAFAFF;
}
-->
</style>
<script language="javascript">
	function showPurchaseBillDialog(type,providerId){
		var url="/purchase/PurchaseBillNew.ihtm?type="+type+"&provider_id="+providerId+"&alert_type=FORM";
		showWin(1024,600,url);
	}
	function showPurAccountDialog(){
		parent.setIframeDisplay("none");
		var url="/base/EstablishmentListForSelect.ihtm?type=PROVIDER&show_all=S&order_type=BUS_TIME";
		parent.ShowIframeNoScroll("选择供应商",url,900,500,"showPurAccountDialogCallBack()");//showPurAccountDialogCallBack是父窗口的
	}
	function showPayBillDialog(){
		var url="/finance/PayBillNew.ihtm?alert_type=SHOW&pay_type=PURCHASE";
		showWin(1024,600,url);
	}
</script>
</head>
<body  oncontextmenu="return false" scroll="no">
<div class="main">
  <div style="height:500px;">
    <div class="blank48">&nbsp;</div>
		<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
			<tr> 
			    <td width="100%" height="300" align="left">
			    	
			    	<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
				      <tr>
				        <th width="6%" height="32" scope="row">&nbsp;</th>
				        <td width="19%" align="center">
				        	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY;')!=-1}">
			                	<a href="javascript:showPurchaseBillDialog('BUY','');"><img src="/images/pur1.gif" border="0" title="收到供应商送货，在这里录入采购单，增加库存，同时作为与供应商结算的凭证" /></a>
			                </c:if>
							<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';PURC_BUY;')==-1}">
								<img src="/images/pur1.gif" border="0" title="收到供应商送货，在这里录入采购单，增加库存，同时作为与供应商结算的凭证" />
			                </c:if>
			            </td>
						<td width="6%"><img src="/images/bus001.gif" width="70" height="75" /></td>
				        <td width="19%" align="center">
				        	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STOC_SEAR;')!=-1}">
							<a href="javascript:showWin(900,600,'/storehouse/StockSearch.ihtm');"><img src="/images/stock3.gif" border="0" title="查询当前库存" /></a>
				            </c:if>
							<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';STOC_SEAR;')==-1}">
								<img src="/images/stock3.gif" border="0" title="查询当前库存" />
			                </c:if>
				        </td>
			            <td width="6%"><img src="/images/bus001.gif" width="70" height="75" /></td>
				        <td width="19%" align="center">
				        	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_ACCO;')!=-1}">
							<a href="javascript:showPurAccountDialog();"><img src="/images/pur2.gif" border="0" title="查询指定期间与供应商的交易明细，打印或导出对账单" /></a>
				            </c:if>
							<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';PURC_ACCO;')==-1}">
								<img src="/images/pur2.gif" border="0" title="查询指定期间与供应商的交易明细，打印或导出对账单" />
			                </c:if>
				        </td>
				        <td width="6%"><img src="/images/bus001.gif" width="70" height="75" /></td>
				        <td width="19%" align="center">
				        	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_BILL;')!=-1}">
								<a href="javascript:showPayBillDialog();"><img src="/images/fin5.gif" border="0" title="支付给供应商款项后，在这里登记付款信息，核销采购单应付款"></a>
				            </c:if>
							<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';PAY_BILL;')==-1}">
								<img src="/images/fin5.gif" border="0" title="支付给供应商款项后，在这里登记付款信息，核销采购单应付款">
			                </c:if>
			            </td>
				      </tr>
					  <tr>
						<th>&nbsp;</th>
						<td>&nbsp;</td>
				        <td>&nbsp;</td>
						<td align="center"><img src="/images/bus004.gif" width="66" height="76" /></td>
						<td>&nbsp;</td>
				        <td>&nbsp;</td>
				        <td>&nbsp;</td>
				        <td>&nbsp;</td>
				      </tr>
					  <tr>
						<th>&nbsp;</th>
						<td>&nbsp;</td>
				        <td>&nbsp;</td>
						<td align="center">
							<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK;')!=-1}">
							<a href="javascript:showPurchaseBillDialog('BACK','');"><img src="/images/pur3.gif" border="0" title="当发生退货时，在这时录入退货单，扣减库存，同时作为与供应商结算的凭证" /></a>
				            </c:if>
							<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';PURC_BACK;')==-1}">
								<img src="/images/pur3.gif" border="0" title="当发生退货时，在这时录入退货单，扣减库存，同时作为与供应商结算的凭证" />
				            </c:if>
						</td>
						<td>&nbsp;</td>
				        <td>&nbsp;</td>
				        <td>&nbsp;</td>
				        <td>&nbsp;</td>
				      </tr>
			    </table>
			   </td>
			  </tr>	  
			  <tr>
    		  	<td align="left" valign="top">
    		  		<br><br>
					<table width="679" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
					    <tr>
					      <td width="1%" align="left" valign="top"><img src="/images/bus005.gif" width="8" height="19"></td>
					      <td width="98%" height="19" background="/images/bus006.gif">&nbsp;</td>
					      <td width="1%"><img src="/images/bus010.gif" width="8" height="19"></td>
					    </tr>
					    <tr>
			  				<td width="1%" align="left" valign="top" background="/images/bus007.gif">&nbsp;</td>
			  				<td height="21" valign="top" bgcolor="#D2E9F7">
			  					<table width="101%" border="0" cellspacing="0" cellpadding="0">
						          <tr>
						            <th width="4%" height="21" scope="row">&nbsp;</th>
						            <th width="3%" scope="row"><div align="left"><img src="/images/ico-setup.gif" title=""></div></th>
						            <td width="19%">
						            	<span class="STYLE1">
										<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_STOR;')!=-1}"><a href="javascript:showWin(600,500,'/base/StorehouseList.ihtm');">仓库</a></c:if>	
										<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';BASE_STOR;')==-1}">仓库</c:if>						            													
										</span>
						            </td>
						            <td width="2%"><img src="/images/a38.gif" title="" width="13" height="10"></td>
						            <td width="3%"><img src="/images/ico-setup.gif" title="" align="right"></td>
						            <td width="19%">
						            	<span class="STYLE1">
						            	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_PROD;')!=-1}"><a href="javascript:showWin(900,640,'/base/ProductMain.ihtm');">材料</a></c:if>
						            	<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';BASE_PROD;')==-1}">材料</c:if>
						            	</span>
						            </td>
						            <td width="2%"><img src="/images/a38.gif" width="13" height="10"></td>
						            <td width="3%"><img src="/images/ico-setup.gif" title="" align="right"></td>
						            <td width="19%">
						            	<span class="STYLE1">
						            	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_UNIT;')!=-1}"><a href="javascript:showWin(400,300,'/base/UnitList.ihtm');">计量单位</a></c:if>
						            	<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';BASE_UNIT;')==-1}">计量单位</c:if>
						            	</span>
						            </td>
						            <td width="2%"><img src="/images/a38.gif" title="" width="13" height="10"></td>
						            <td width="3%"><img src="/images/ico-setup.gif" title="" align="right"></td>
						            <td width="20%">
						            	<span class="STYLE1">
						            	<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BANK_ACCO;')!=-1}"><a href="javascript:showWin(900,400,'/base/BankAccountList.ihtm');">银行账户</a></c:if>
				            			<c:if test="${currentUser.user.userType!=1 && fn:indexOf(currentUser.privs,';BANK_ACCO;')==-1}">银行账户</c:if>
						            	</span>
						            </td>
						            <td width="1%">&nbsp;</td>
						          </tr>
		      					</table>
			  				</td>
			  				<td valign="bottom" background="/images/bus011.gif">&nbsp;</td>
						</tr>
					    <tr>
					      <td width="1%" align="left" valign="bottom"><img src="/images/bus008.gif" width="8" height="19"></td>
					      <td height="19" align="left" valign="bottom" background="/images/bus009.gif">&nbsp;</td>
					      <td valign="bottom"><img src="/images/bus012.gif" width="8" height="19"></td>
					    </tr>
					</table>					
				  </td>
				</tr>
			</table>
  </div>
</div>
</body>
</html>